﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.DesignPatterns._08_桥接模式
{
    /// <summary>
    /// 物流公司接口
    /// </summary>
    public interface ILogisticsCompany
    {
        /// <summary>
        /// 创建运单
        /// </summary>
        /// <returns></returns>
        string CreateWaybill();
        /// <summary>
        /// 取消运单
        /// </summary>
        /// <param name="waybillNumber">运单号</param>
        void CancelShipment(string waybillNumber);
        /// <summary>
        /// 跟踪运单
        /// </summary>
        /// <param name="waybillNumber"></param>
        /// <returns></returns>
        string TrackShipment(string waybillNumber);
        /// <summary>
        /// 计算运单费用
        /// </summary>
        /// <param name="weight"></param>
        /// <param name="volume"></param>
        /// <returns></returns>
        decimal CalculateFreight(decimal weight, decimal volume);
        /// <summary>
        /// 获取物流公司名称
        /// </summary>
        /// <returns></returns>
        string GetCompanyName();

    }
}
